<%@ page import="service.serviceimpl.ServiceImpl" %>
<%@ page import="entity.T163" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/9
  Time: 15:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <%List<T163> t163s = new ServiceImpl().executeQuery("select * from t163 where id<=6");%>
  <table border="4">
    <tr>
      <th>id</th>
      <th>name</th>
      <th>sex</th>
      <th>操作</th>
    </tr>
    <% for(T163 xjj : t163s){ %>
    <tr>
      <td><%=xjj.id%></td>
      <td><%=xjj.name%></td>
      <td><%=xjj.sex%></td>

    </tr>
  <%}%>
  </table>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script>
    $("tr:odd").css("background-color","green");
  </script>
  </body>
</html>
